package com.dai.bean.tasks;

import com.dai.bean.TaskType;
import org.json.JSONObject;

public class TaskChiFan extends TaskBase{

    public static final TaskType taskType = TaskType.ChiFanBuTie;

    public int zaoCan = 0;
    public int wuCan = 0;
    public int xiaWuCha = 0;
    public  int wanCan = 0;
    public int xiaoYe = 0;

    @Override
    public JSONObject toJsonObject() {
        JSONObject obj = new JSONObject();
        obj.put("zaoCan",zaoCan);
        obj.put("wuCan",wuCan);
        obj.put("xiaWuCha",xiaWuCha);
        obj.put("wanCan",wanCan);
        obj.put("xiaoYe",xiaoYe);
        return obj;
    }

    @Override
    public void checkReset() {
        zaoCan = 0;
        wuCan = 0;
        xiaWuCha = 0;
        wanCan = 0;
        xiaoYe = 0;
    }

    @Override
    public String getTaskTypeName() {
        return taskType.getValue();
    }
}
